
export const state = () => {
    return {
        users: [],
        pages: {
            pageSize: 1,
            currentPage: 1
        },
        total:0
    }
}
export const mutations = {
    LIST_ADD(state, payload) {
        state.users = payload
    },
    LIST_DELETE(state, payload) {
        console.log()
        // console.log(state.users.indexOf(payload))
        // state.users.splice(state.users.indexOf(payload), 1)

    },
    GetTOTAL(state, payload){
        state.total = payload
    }
}

export const actions = {

    onDelete({ commit }, payload) {
        commit("LIST_DELETE", payload)
    }

}
export const getters = {

}